#the oldest version
cmake_minimum_required(VERSION 2.8)
#cmake project
project(Hit)
#find package
find_package(OpenCV REQUIRED)
#include hpp
include_directories(${OpenCV_INCLUDE_DIRS})

##
aux_source_directory(. CPP_LIST)
#add kezhixingwenjian
add_executable(Hit ${CPP_LIST})
#jiang kuwenjian lianjiedao kezhixing (.exe) shang
target_link_libraries(Hit ${OpenCV_LIBS})